package com.objetdirect.gwt.umldrawer.client;

import com.google.gwt.user.client.ui.HorizontalPanel;
import com.google.gwt.user.client.ui.Image;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.VerticalPanel;

public class TutorialsPage implements PageContent {

	private VerticalPanel mainPanel = new VerticalPanel();
	private VerticalPanel tutorialContent = new VerticalPanel();
	private HorizontalPanel tutorialWithImage = new HorizontalPanel();
	private VerticalPanel tutorialPanel = new VerticalPanel();
	private Image umlImage = new Image();
	private Label tutorialsLabel = new Label() ;
	private Image header = new Image();
	private Image footer = new Image();
	
	@Override
	public void setPageContent() {
		header.setUrl("images/header.png");
		header.setWidth("1201px");
		header.setStyleName("headerImage");
		
		tutorialsLabel.setText("Tutorials");
		tutorialsLabel.setStyleName("pagesHeader");
		
		footer.setUrl("images/footer.png");
		footer.setWidth("1201px");
		
		tutorialContent.add(new HeaderButtons().getHeaderButtons());
		tutorialContent.add(tutorialsLabel);
		
		umlImage.setUrl("images/image.jpg");
		umlImage.setStyleName("homeLeftImage");
		
		tutorialWithImage.add(umlImage);
		tutorialWithImage.add(tutorialContent);
		
		tutorialPanel.add(tutorialWithImage);
		tutorialPanel.add(new PrivacyBar().getprivacyBar());
		tutorialPanel.setStyleName("border");
		
		mainPanel.add(header);
		mainPanel.add(tutorialPanel);
		mainPanel.add(footer);
	}

	@Override
	public VerticalPanel getPageContent() {
		setPageContent();
		return mainPanel;
	}

}
